package newfangle.demos

import java.awt.{Color,BasicStroke,Stroke}
import java.awt.Color._
import java.awt.Font
import java.awt.Font._

import org.pwwong.fxscalautils.Predef._
import org.pwwong.fxscalautils.{FXScalaApp,DisplayMode}
import org.pwwong.fxscalautils.components.controls.{Button,Text,Rectangle,RoundRectangle}
import org.pwwong.fxscalautils.components.layouthints._
import org.pwwong.fxscalautils.components.containers.Stack

import org.pwwong.scalautils.animation.Predef._
import org.pwwong.scalautils.signals.Predef._

object ButtonDemo extends FXScalaApp(1024,768,DisplayMode.Windowed) {
  
  // Layout boxes on Canvas
  contents(
    Button() w(50%%) h(50%%)
             fillPaint(black)
             textFillPaint(white)
             text("Hello World")
             textFont( new Font(SANS_SERIF,BOLD,24) )
  )
}
